Fixed bug that threw a python error when an template was fetched (e.g., template/1) but the template wasn't there;