Add in checks, so orphaned pages will not explode.

Mirroring https://github.com/Islandora/islandora_paged_content/pull/53