Description
When using agent updated and agent deleted event in workflow, showing an error after agent update or agent deleted
How to reproduce
Step 1: Go to the admin panel and create a workflow with the agent updated events and save:

For agent deleted event and save:

Step 2: Now go to the agent option and click on the edit button now edit the agent details and save
Step 3: After save showing an error:

Possible Solution
If we choose response performing agent event should be transferred ticket to the response performing agent.