Use importNode instead of adoptNode.
Use importNode instead of adoptNode.

`adoptNode` sometimes fails by returning `null` causing all kinds of
trouble. `importNode` seems to always work.

BandwidthOnDemand/nsi-safnari,BandwidthOnDemand/nsi-safnari