Fix bug with persisted 'connected' edges

Connectors kept 'connected' edges after deleting item with outlet, where
they were connected to.