graphqlbackend: Ensure we use a non-negative capacity in zoektIndexedRepos
Created by: keegancsmith
This is currently causing panics on our dogfood instances.
Test plan: Added a unit test which reproduces the panic. Unit test now passes.
Supersedes #4761
Fixes #4759 (closed)