Improve error reporting when parsing Handlebars templates