Fixes NPE when inviting peers to chat room.