Fix dead repositories link appearing on non-cloud instances
Created by: eseliger
The condition was not correct. It did check for existence, but not if the condition function of the entry returns a truthy value. This fixes it by using the correct helper right away without the need to search in the list in the first place.
Fixes https://github.com/sourcegraph/sourcegraph/issues/22539