Fixed a NPE with NodeCnnector.isValidConnector