Fixed over-aggressive minLength checking in autocomplete