fix(notification): avoids fatal error if notification event lacks object

Fixes #7157
Merge pull request #7158 from mrclay/7157

fix(notification): avoids fatal error if notification event lacks object