added fix for newly created pages with blocks on it, not yet having parent page or blocks