Don't crash when dispatching a callback with zero handlers