Issue #8179 by tuj: Fixed the setting of the active submenu class