Compile only when necessary

Compiling text makes angular create a useless "<span ng-scope/>" DOM node
to enclose the text. This patch keeps the compilation behaviour for the
only use case it is really needed for.