ReplaceDialog: better update replace button sensitivity

Now the replace button is sensitive only when a match is selected.