Fix hasOne required validation.