#27767: Customizer: Widget settings are lost when activating a previewed theme

DO NOT MERGE. For review only.