This is a bug fix mostly to support references produced by confluence-xml 9.47.0 (see https://jira.xwiki.org/projects/CONFLUENCE/issues/CONFLUENCE-236).