Support passing `false` as event callback

It's equivalent to specifying a callback function that simply returns `false`.

Fixes #845