Fix EZP-23249: Switching siteaccess does not update prioritized languages

Closes #1080
(cherry picked from commit 60b9e90d640c8562dc86506689a65fbf79e31360)