Check we still have pages after ArticleMetadata::validatePageId()

Bug: 67366
Change-Id: Ie6ac52cbf585718bfe4ff3b07f12731bab0dd233