Base: Fix typo in page ID check