An existing language xml can't be saved after re-editing

Edit an existing language in the language view and try to save it again. The $id is not obtained and save fails.
This PR should solve the issue.