Handle (degenerate?) case of a single switch or single server.

This patch limits errors in cases where there's a switch, but no other devices (and vice-versa), so I think it shows up only in fairly small configurations.