[BUGFIX] Respect argument showHidden when detecting subpages

Hidden pages (nav_hide=0) were always excluded from subpage detection even with showHidden=TRUE. Fixes #228.