search: Handle empty repository revisions in context UI
Created by: tsenart
When passing an empty list of repository names on dotcom, we'd try to load ALL repos in the instance. This makes it so we don't send a request to the backend unless we have names to check.
Follow up from #29327