Catches AttributeError when 'published' is not ISODate
Fixes bug that didn't include metadata in the xml