event_callback: Fix segmentation fault

If an event is closed and an error occurs in the same callback, it would
cause a segfault due to cb->base being NULL.  Previous commits has
this covered if the event is closed **or** there's an error, but not both.