XWIKI-9731: Translation bundles are not really ordered by priority

(cherry picked from commit 9f4cdf4acdc560c30250e1b163b01c1583f041d3)