MYLOC-142 Fixing auto-complete bug when backspacing to a single character

prepareSearchTerm will always return a string so doing an undefined check here is unnecessary