stop page propagation if there is no page or container
Merge pull request #6058 from beck24/pages-nonobject

Return 404 for history of not-found pages