XWIKI-10040: XAR export is failing if one of the document properties has a null value

(cherry picked from commit 88230e94adb1a89730e281a1b3a9e3fa4c58b1db)