coverity#1158200 Dereference null return value

Change-Id: I9d8215f2fc2ab93a0d4315a8ad71b64560b6d732
Resolves: fdo#74499 crash on writing .docx

Change-Id: If2d46e26ec6ffead1e283479c516131a2b66f50d