XCOMMONS-343: Adding an event to an already registered event listener fails unless an event of the same type was added on registration
Fixed.
(cherry picked from commit 1c7454d54d835aa1633df8fa0add6b61e0210b0e)