made optimizer tolerant to bundles with missing 'widgets' folder