Fixed a bug which caused failure when saving key with no country defined in locale.