Text node: No add echo if there is nothing to echo

In my Twig PHP cache, I can see lot of echo with only white spaces (echo "     ";). This commit will disable useless echos.