crashtesting: PageFrame may not exist

Change-Id: I5799ca4e08146688a842ff53a7eb5591504069a6
Reviewed-on: https://gerrit.libreoffice.org/54066
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index e87b5a0..f9e1dd2 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -1428,7 +1428,7 @@ void CalcContent( SwLayoutFrame *pLay, bool bNoColl )
            }

            {
                SwFrameDeleteGuard aDeletePageGuard(pSect->FindPageFrame());
                SwFrameDeleteGuard aDeletePageGuard(pSect ? pSect->FindPageFrame() : nullptr);
                SwFrameDeleteGuard aDeleteGuard(pSect);
                pFrame->Calc(pRenderContext);
            }