Bug fix handling malformed XML.