[master 2/3] Don't crash when setting an unavailable locale (#1312607)