fix: compatibility with angular-animate 1.3

`$angular.leave()` returns a promise now