Fix regression in presence handling

Needed for peers with multiple presences.