Check that the port is actually set

Not sure if it really can happen, but if there is no NetworkConnector
in the list of connectors, the port will never be set.