Make sure a malformed XMP won't crash dt.

When trying to import a lr XMP exits if the XMP does not contain
a node.

Fixes #9457.