Fixed another edge case in the JSONRPC handling