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.
Merge pull request #458 from johnhaddon/connectionDragBugFix

Fixed connection drag bug.