Fix #7551

Simply drop out of search mode (back to the original mode) when accepting an empty search-string.

#7551