Fix missing return in window.requestAnimationFrame closure.