[pe][hf][bug] Check text before applying header/footer properties (For bug 42277)
[pe][hf][bug] Check text before applying header/footer properties (For bug 42277)

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