events: fix add-remove-add case in EventTarget
Make sure that listeners are added properly if there has previously been one but currently are none for a given event type.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines