Update Handlebars.php to accommodate Symfony 2