fix bug in generate_known_helpers_hash

was previously undetected due to a bug in Handlebars:
https://github.com/wycats/handlebars.js/issues/302