Fix empty dict in the script arguments when running a script in the cmd-exec