Handle parser errors from handlebars

fixes #47