(patch) animation: Fix CPU usage issue

The cancelAnimationFrame function was called with the argument
being undefined, which caused Firefox to increase the CPU usage
and keep it there. The function should never be called here,
since the animation timer is cancelled in another place.