[BUGFIX] Expand submenus on active pages

This patch fixes submenus not being expanded on active pages.