Fix EZP-21919: problems editing workflows concurrently in 2 browser windows

when user presses "cancel" in both windows, workflow gets removed from its groups