apps/jsonrpc: do not include "result" member in error response