Catch possible NPE in ScriptQueue/ScriptEntry.