if selected is changed such that there's no item to select, set the selectedModel to null.