BUG: Fix exception when comparing Event to object with no __dict__.

In particular don't throw an exception on comparison to `None`.