Improved handling of empty date elements during parsing.