Only try/except TemplateDoesNotExist for the requested comps template

Sometimes, `TemplateDoesNotExist` is thrown while rendering the template (for example, if the template being extended does not exist). This PR narrows the try/except so that the exception is only caught when looking for the requested comps template.