Fix validation of fields with empty definition