Improved error handling if Header.ftl or Footer.ftl are missing.