debugger: fixing a bug where switch.ports was empty
debugger: fixing a bug where switch.ports was empty

should check length first. Might have no ports if either:
  - there is only one switch (and no hosts) in the network
  - all ports are currently down

jmiserez/sts,ucb-sts/sts,ucb-sts/sts,jmiserez/sts