fetchPortList: fix condition broken by prev commit