fix(ngAnimate): ensure that delays are always considered before an animation closes

Closes #4028