fixed crash in module.c if no bot is available