Useless code path in import_from_xml causing errors removed