Added some error checking for the templates.ini