Optimize output code by not compiling empty TextNodes