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.