Fix crash when JSON batch response vector is empty