fix(pages): can delete comments if canEdit page container

fix(pages): can delete comments if canEdit page container

Fixes #7007
This logic looks right but should be moved to a function like pages_can_delete_page(). We should also not assume we can load the container. I think `$container->canEdit()` will simplify this, too.