Fixed issue that would raise an exception when a new write node is
created connected to an existing selected node.