The e0597268116cf90d961abeba9d14aaad0ab682d2 commit from #6209 was intended to deselect a peer when switching away from the Peers tab in the RPC console. But switching away from the Peers tab to the Console tab and back does not deselect a peer.
This PR makes tab switching consistent: a peer is always deselected when switching away from the Peers tab.

