Clicking on search results does not follow link
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "regression" or "bug" label:
- https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression
- https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=bug
and verify the issue you're about to submit isn't a duplicate.
--->
### Summary
The global quick search can sometimes fail to take you to the searched project when clicked on
### Steps to reproduce
1. Enter something into the global quick search at the top right of the page that will cause it to return 0 results
1. Clear your entered search and instead search for an actual project
1. Clicking the project in the search result now does nothing
### What is the current *bug* behavior?
The quick search does not take you to the searched project when a prior search returns 0 results. You have to reload the page to make the search work again.
### What is the expected *correct* behavior?
The quick search takes me to the searched project
---
This is the same as gitlab-org/gitlab-foss#64120.
This comment says about that it's still happening: https://gitlab.com/gitlab-org/gitlab-foss/issues/64120#note_254361466
issue