Validator: fix on handling null values with min and max conditions