Tweak addEvent so it silently ignores non-eventing contexts