Fix private messages crashing the bot.