fixed crash of Formatter when intl is not installed

related to #5214