avoid NPE if templates are not found.