FIX: Does not fail anymore in metadata editor (fixes #61).

Fixes the bug that prevented document or metadata edition after editing
creator field, and update references in user interface.