Revert "XWIKI-10780: Observation manager does not fully overwrite existing event listener"

This reverts commit 987984140f7ac7bdb8950b59c113c744c2ef2a71.

(cherry picked from commit fb35fbb0d2efe2d751adfe07cca840246dece2df)