MFC r183135
Make sure there is at least one port to avoid divide by zero when choosing the tx port.
Approved by: re (kensmith)