BUGFIX check if currentPage is a site in getActiveSite()