fix($compile): render nested transclusion at the root of a template

Closes #8914