How to conditionally display widgetized areas in theme customizer?

You are doing something wrong in your theme, maybe “hiding” the sidebars with css instead of not displaying them at all. The customizer is supposed to display only the sidebars which are actually active on the page.