Fix to new port scan where there is no any ports in the system.

PortExists routine optimization.