Avoid error when date in JSON data has no 'date-parts'.

This change allows support for dates that lack a 'date-parts' element, such as dates that only use a 'literal' element.