trigger should ignore unregistered events, fixes #8