fix error deleting selected RadioMenuItem, fixes #17519