[BUG #7418] Fixed stopping of JS based animations.