XWIKI-10079: XWikiDocument#fromXML fail to parse history of a document saved before the xclasses it depends on

(cherry picked from commit 6920b9c5451fd30f150266b107b76eaa8e95e9b6)