XWIKI-11180: Leftover context user on the BatchImporter scheduler job

(cherry picked from commit ae982b40130bc4bc8f0f3a1c098cd610711e4564)