Fix: animation started even no animated class

On Firefox, even if there is no '.animated' class the animation is still
started.