Use imported handlebars before global Handlebars

Prioritizing the global Handlebars causes problems in environments with multiple versions of Handlebars. One should be able to import a desired version.
Merge pull request #3910 from aaronshaf/patch-1

Prioritize imported Handlebars over global Handlebars