fixes #3107 where tradeship causes crash when no valid port is found

It assumed it would find a station as long as the system wasn't empty, but did
not consider a system with no port suitable for ship without atmosphere shield.