Robust checking

combobox lengths are checked before setting the selectedindex in case of
changes to the incoming lists.