Prevent a crash that could occur if bot creation fails and bot is nil.