prevent exception in date_select when date is InvalidDate