Fixed active state for radio button

If in the checkbox there is a group, the checkbox becomes radiobutton, but it was possibile to disable the active state and leaves the group without a value, with this fix if there are radiobuttons at least one is always checked and if there is checkboxes is possbile to checked or unchecked