[BUGFIX] 'hasSubPages' counts subpages which are hidden from menu 

Fixes an edge case when a page has only subpages which are all hidden from menu (nav_hide=1).

Fixes: #17