Bots make CacheNotConnected middleware crashes. Add verification before processing.