Fix KeywordSearch
Split from !4927. Fixes #8760.
This fixes single-character topics not getting linked properly, mKeyword potentially being assigned the value instead of the keyword, and duplicate insertions being case sensitive.
In theory this thing was already case insensitive (given that duplicates don't exist) so I've also removed some redundant code in getDialogIdKeywordSearch.
Edited by Evil Eye