Fixed the bug with the definition of whether the formula is in the document or in the shape.
Fixed the bug with the definition of whether the formula is in the document or in the shape.

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