XRENDERING-258: Convert Pegdown AST to an XDOM instead of relying on the Pegdown HTML renderer
* Fixed NPE when using a reflink with no reference specified