DefaultScriptService: fix NPE

Thanks, Jenkins.