title: AngularJS finally not executed if promise is notify
body: <p>In my AngularJS application I'm trying to use <code>finally</code> in <code>$http</code> call.</p>
  
  <p>This is my service</p>
  
  <pre><code>app.service("webResource", function($http, $q) {
      return {
          post : function(url, json) {
              var defer = $q.defer();
              $http.post(url, json)
              .success(function (data, status) {
                  if (data!=null) {
                      defer.resolve(data);
                  } else {
                      defer.notify("Send notify....");
                  }
              }).error(function (data, status) {
                  defer.reject({"response":data, "status": status});
              });
  
              return defer.promise;
          }
      };
  });
  </code></pre>
  
  <p>In my controller I have</p>
  
  <pre><code>$scope.callServer = function() {
      var promise = webResource.post('someurl',$scope.data);
      promise
      .then(
          function(data) {
              alert("Success");
              //Do for success
          },
          function(data) {
              alert("Error");
              //Do for failure
          },
          function(data) {
              alert("Notify");
          }
      ).finally(function() {
          alert("Finally");
      });
  };
  </code></pre>
  
  <p>If it's resolved or rejected, it's working fine. But if it's notify it alerts <strong>"Notify"</strong>, but then not alerting <strong>"Finally"</strong>. Why is that?</p>
  
  <p>I'm using AngularJS 1.4.2 version</p>