Fix empty batches/queries in `batch.add()`

is this an array? If so, length needs to be added back in