fix for Uncaught TypeError: Object #<Object> has no method 'abort'

Prevents "Uncaught TypeError: Object #<Object> has no method 'abort'" error for case when non-jQuery promise is used as a handler (AngularJS $promise for example). This is required for better integration with angular-ui-select2 directive.