Added a check for non-existent/unreadable template files in the constructor.