[bot.py] Handle a 0-length string properly

Closes #396