[Bug #8021] Ensure that all elements in radioGroup will be removed
(cherry picked from commit c212df8a4e725a5ed75b9804a236e706027b3d84)