fix(transcluding_component_factory): fix content detach logic

detachContent was finding the wrong end comment node and failing on assetion (in checked mode).