Fix NPEs in WorldScriptHelper.