[Misc] Check if object is null everywhere XWikiDocument#getXObjects() is used in xwiki-platform-wiki.
Merge pull request #232 from gdelhumeau/master

[Misc] Check if object is null everywhere XWikiDocument#getXObjects() is used in xwiki-platform-wiki.