fixed error occuring while resolving a template (when the content did not change, there was a trace with an error in it)