Fix bug regarding the number of items shown in the dropdown menu

When the input is empty, minLength=0 and showHintOnFocus=true, only 'items' elements are shown in the dropdown menu.

As it was before, even after specifying for example a maximum of 10 items, all of them were shown in the scenario described above.