Fixing odd edge-case probably specific to my project where the external templates have to be inserted as a sibling of the internal ones due to the nodes being moved to the document root