Catch errors from Handlebars.precompile and pass them to the callback