#995026: Fix export UI during enable/disable which would throw notices and not properly set/unset menu items.