fix(compile): Fix for extended `remove` function

Fix for the extended `remove` function that is used during
`multi-element` transclusion to also remove the element from its
parent when there is one