XWIKI-9243: Possible nullpoint in XWikiDocument#getXObjectProperty when asking for object that does not exist
(cherry picked from commit 31b627bda3c4fea07ea661b0548c616f1e2cdfbb)