Fix logical error in server-side implementation of required if rule for lists.

Required if rule contained code that attempted to consider an empty list to be "null" for purposes of validation. However, a non-null value for the list would short-circuit this code, so it would never take effect. The same sort of logic exists in the client-side implementation of the rule.