Update EditingCommandHandler.cs

Some minor glitches fix and 1 possible rare crash situation fix