Fix file_exists issue with setTemplate() in the Form class