Fixed connection drag bug.

Dragging the endpoint of a connection around and then placing it back where it started was breaking the connection, whereas it should have been having no effect. This fixes that.