Ignore events for irrelevant object types.

Fixes ZEN-8273.