Fix traceback if bot is kicked immediately after joining a channel.