fix for MID-2075 - incorrect handling of locale from session in firefox