Fix issue with potentially referencing past an array in parse_time()