Fixes unique name constraint issue during paste of a cut node.