Fixed validation condition for null field values (not just empty string values)

Null values are caused when validation is run on a <select> element
with either no <option>s or a disabled <option> is selected (by default
on a page load, not because the user selected a disabled option!).