Fix crash when calling SCI_REPLACETARGETRE without having done a search first.
Fix crash when calling SCI_REPLACETARGETRE without having done a search first.

keperlia/foo-wsh-panel-mod.scintilla,windoze/scintilla,windoze/scintilla,keperlia/foo-wsh-panel-mod.scintilla,windoze/scintilla,keperlia/foo-wsh-panel-mod.scintilla,keperlia/foo-wsh-panel-mod.scintilla,keperlia/foo-wsh-panel-mod.scintilla,windoze/scintilla,windoze/scintilla,keperlia/foo-wsh-panel-mod.scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla