Fixed crash when dragging nodes.

This occurred when a "dangling" connection existed without a source nodule, as happens when inputs come from outside a Box or a node has been hidden in the GraphGadget.
Merge pull request #214 from johnhaddon/dragReconnectCrashFix

Fixed crash when dragging nodes.