fix regression introduced by #17155

The fix commited for #17155 introduce a regression preventing to load 1.6 i18n layer.

See https://bugs.dojotoolkit.org/ticket/17155 for test case and details.