angular/angular.js — pull request #9979 by gyx1000 (2014-11-10 11:57:50+00:00)
Title: fix($httpBackend): compare timeoutId with undefined in completeRequest

httpBackend with ngMock browser.defer can never cancel the first deferredFn because the timeoutId returned by defer for the first fn is a zero value.
Compare timeoutId with undefined fix this issue.