Fix bug #41107
Fix bug #41107

Fix the problem with calculating spacing before/after paragraph with turned on contextual spacing property in case when paragraph were separated by different containers, such as table or block-level content control.

ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs