I think you need to call clearHighlights() here too.  Otherwise, the highlights will remain if you backspace until the search query is blank.