If the removed item is the last in the list, we should set the selection to the previous item.