Handle invalid numbers in parseTime()