templates: don't panic if templates is missing