fixes a problem (on null payload?) that caused the bot to crash