Fixed crash when locale contains only language.
Merge pull request #1 from zebooka/master

Fixed crash when locale contains only language.