regedit: don't crash when searching backwards