[BUGFIX] Ensure types in condition
Merge pull request #551 from bjo3rnf/submenufix

[BUGFIX] Expand submenus on active pages