Web UI recording - Save Script

Hi,

Object reference becomes null if we deselect any object while saving script.
Is there a solution to solve the issue?

How do you want it to be?