Esc after global search leads to "No document is open" error

I can reproduce it easily on Google Chrome 77.0.3865.90. In your repro GIF, youā€™re clicking the back button on the browser, but thatā€™s not in my repro steps; Iā€™m pressing Esc on the keyboard to cancel each search.