fix segfault when calling StopScript builtin with no parameters
Merge pull request #5664 from tamland/stopscript

fix segfault when calling StopScript builtin with no parameters