I may state the obvious, but why not disallowing unticking the element when it's the last remaining one instead of selecting the next element?
Strictly superior here is the default in the article -- allow them to unselect, but disable the "continue" button.