Fix crash when no results are found for :g search