(1) The wrong port name was passed to the SNodeConnectionType (the one of the target). (2) NPE when one of the endpoints of a connection is not set.
Exception during model write broke the editor

If for example a dragged element from the palette caused an exception during the write to the model, the jgraph editor was left in an invalid state and change events were not fired anymore.

See also: #69