XWIKI-10286: XWiki#exists returns false for document translations

(cherry picked from commit e1feea0f1c1cc92871392f30c28bcfceff18c20b)