fix bug with presences with no resource attached