Fix bug in undo cmdDeleteNodes

No more duplicated connections