Make sure we always only reselect old item if its still the first

Merged Waqar Ahmed requested to merge work/comp-item into master

Sometimes while typing it so happens that the completion widget selects an item that is not the first which is weird as after filtering we should always select the first item as its the best match according to the model.

Merge request reports