fix(ngAnimate): only execute a timeout when transitions or keyframe animations are detected

ngAnimate causes a 1ms flicker on the screen when no CSS animations are persent on the element.
The solution is to change $animate to only use $timeouts when a duration is found on the element
before the transition/keyframe animation takes over.