Added error handling if template.php or requested template is not found.