protobuf-rpc: null checks

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>