fixed options error and partial with no namespace bug

- fixes issue with having the default wrapAMD function outside of the
task definition
- fixes bug with having amd true and namespace false where partial has
return prepended to the function passed to Handlebars.registerPartial