Catch errors on missing templates

Pages that are missing a template will cause a error 500. We now catch
this and display a default string.

Fixes #513
Merge pull request #520 from TheSerapher/issue-513

Catch errors on missing templates