Fixed issue with angular.element(...).injector(...) is undefined