[ScriptRunner] fix possible BSOD.