VALID_DATE() function sees empty string as valid