Fix JS error in the case that Handlebars templates don't exist