Fix a case for custom RequireJS loader

When using packages built by browserify which uses this in [Brackets](http://brackets.io/), some users get an `module is not defined` exception because loading doesn't get to `RequireJS` case.

Related issue:
https://github.com/zaggino/brackets-git/issues/277
https://github.com/kriskowal/q/pull/391