Test the custom validator accepts nulls