Fixed #19581 -- duplicate IDs with CheckboxSelectMultiple widgets

ID check is now done the same way as MultipleHiddenInput.