Fix the crash in the zoom slider correctly
CCBUG:418587 (cherry picked from commit f71d208167fc742284f3d65d96eb810979a56724)