Fixing logic of timeout clear so that it is always removed regardless of how many characters have been entered in the search field