Try for fix NPE exception caused by saving current locale what was still not initialized.