Fix ugly search errors when a string can't be parsed to a date