Fix error, if joinChat callback is missing