only return SafeString if template output value contains HTML, resolves #174