EZP-22066: Fixed legacy embed script command crashing