Fixed creation of entry with specified locale, fix bug with lost locale after update/create.