fix(resource coordinator): fix error when returning function from amd module
fix(resource coordinator): fix error when returning function from amd module

jw56578/templating,aurelia/templating,michaelgeorgeattard/templating,milunka/aurelia-templating,JeroenVinke/templating,cmichaelgraham/templating,shanonvl/aurelia-templating,davismj/templating,PWKad/templating,charlespockert/templating,AshleyGrant/templating,tcollard/templating,behzad88/templating,simudream/templating,hitesh97/templating,aurelia/templating,jdanyow/templating