Fix crash when somebody leaves a chat