Fixed 'Bug 14397 - Problem with Search and Replace (Selection)'.