A flurry of wickets preceded Nottinghamshire's resolute display with the bat as the hosts and Essex settled for a draw on day four at Trent Bridge.