[BUGFIX] isPidValid() returns FALSE for pages with doktype 254

Resolves: #57491
Change-Id: I050fcedbc396f8d96f3dfa5d73358874388bd994