Error template for freemarker, velocity and xsl does not work since changes in LPS-25570 and LPS-32140

...since changes in LPS-25570 and LPS-32140.