[BUGFIX] Ensure types in condition

This patch fixes submenus not being expanded on active pages.