search: Handle empty repository revisions in GraphQL resolver
Created by: tsenart
This is another similar instance to yesterday's #29448. This time the
culprit is in RepoStore().GetSetByIDs
, which will return all repos in
the database if no IDs are given.