Protect against undefined content

https://github.com/bbkr/jsonrpc/issues/6