XWIKI-6199: When documents containing attachments were imported, XWikiAttachmentArchive.getVersions() throws an NPE if there is only one version
(cherry picked from commit 0efc624318627a7978e5e96a2f615c61566c63cc)