[BUG #7418] Fixed the 'AnimationHandler' class to not execute any code of the 'AnimationJs' class if a CSS based animation is used. Added a unit test to cover the changes.