Support callbacks with void return types (the json result will be a null).