Keep support for jQuery.Deferred if jQuery is defined with fallback to AngularJS $q