Robust conditional block helper for Handlebars