Don't show tooltips with empty text

The dev can make a template that return an empty string. In that case there is no need to show the tooltip.

Note that identation confuse git, I only add `if (this.text)` and `}`.