bugfix in HandleBatchRequest()

My RPC server built with libjson-rpc caused a crash when it received a batch request. This patch fixes the issue.