XWIKI-4689: Previewing a new form-based document does not set the right document syntax
* BaseElement handling of the document reference is pretty weird...