Fix deluge of errors when template string is missing or invalid

Fixes https://github.com/alexcorre/git-blame/issues/26.

@alexcorre this is dependent on alexcorre/git-blame#23 so once you've merged that, I can send you a PR of this with respect to your master branch. For now the only way to show you is to do this though...