Fix import of additional root elements

broken with XML importer

(from redmine: issue id 823, created on 2018-01-22tgradl)