Fixes inability to delete standalone pages
(cherry picked from commit 9c16bff)