Fixes NPE, do nothing and close chat invite dialog if nothing selected.
Fixes updating offline status for private messaging contacts (when locally leaving room).
Uses display name when accepted invitation to join a chat room.
Fixes handling of received errors for sent messages to private contacts when original chat room is left (typing opset used to create a contact for the chat room). Ignore retrieving some information for private contacts as it is not available.