fdo#75260: Apply the same fix from writer table to paragraph bordering.

Change-Id: Icb11a2e2f802cbf2af2362315f3acbc66f15334d
(cherry picked from commit 961da51ae28b46c96344be20abd1b5172a3faa3f)
Reviewed-on: https://gerrit.libreoffice.org/8649
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>