Only try and domify the template if it returned a string.
4.2.3