Fix PeerManager::get_peer_node_ids to filter according to docs