Duplicate themes in the heap after creating or copying themes
Description
After creating a new theme or copying a theme, the heap includes two instances of that theme (represented as DefaultMutableTheme), referencing the same theme ID and name. The cache and heap should only have one object per theme.
After creating a new theme or copying a theme, the heap includes two instances of that theme (represented as DefaultMutableTheme), referencing the same theme ID and name. The cache and heap should only have one object per theme.