ScriptUtils: Make sure arguments aren't null

fixes #8003