Fixed number field validation

Number fields will not validate if the Minimum or Maximum values are not
filled. Empty() cannot be used to get these parameters and an additional
check is necessary in the actual validation.