Make `sendEvent`'s value param actually optional.

`args.getLong(n)` will raise an exception if the `n`th argument is `null`.