add missing return values in safeRequestAnimationFrame,safeSetTimeout,safeSetInterval