fix($compile): do not wrap empty root text nodes in spans

Closes #1059