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

Closes #8914
Closes #8925