XWIKI-10079: XWikiDocument#fromXML fail to parse history of a document saved before the xclasses it depends on
* add the same logic in WikiStream module

(cherry picked from commit 8bce387dac1b09e581b686a90556063e623e041b)