Handle parser errors from handlebars

fixes #47
Merge pull request #48 from ErisDS/error-handling

Handle parser errors from handlebars