Merge pull request #5551 from samuele3hu/bug_fix

fix:make TimerScriptHandler do nothing in the `cancel` function