fix($compile): safely create transclude comment nodes

Closes #1740