Fix for partials not being registered

Partials were not being registered due to Handlebars.registerPartial being executed in the if statement