BUG: Fix to_datetime() uncaught error with unparseable inputs #4928

closes #4928