Improved EditableValue's event management

Tests comply with change https://gerrit.wikimedia.org/r/#/c/145483/ now.

Change-Id: I1a30454be9d5abe54541c1fc7939a781480d444d