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.
Merge pull request #160 from finn-no/check_local_port_is_set

Check that the port is actually set