Correct _doHasSearch() implementation. Bug #13175