Fix error message appearing when clicking on locales in project administration