Fix a crash in cc.Scheduler.unscheduleAll cpp binding codes.