Avoid unnecessary illegal downcasts from SwFrmFmt to SwSectionFmt

Change-Id: I2ca8d57a09b6f8c6d760b5fb6a3d2f94ad22ada3