[Fix] array index out of bounds when parsing invalid date format.