[BUGFIX] Correctly check for a key in getPageForRootline