Prevent typing more characters when the search already returns 0 items