Fix menu visibility for plugins

Map, spriteset etc. menus are now properly hidden when document is not
active