TBR: Add missing "if (err)" check spotted by sadovsky in go/vcl/12569

Change-Id: Id6667a928a0fc05e96d127a5e9d28c30adfe892f
diff --git a/test/integration/test-batch.js b/test/integration/test-batch.js
index 576a3f6..eb2f2cb 100644
--- a/test/integration/test-batch.js
+++ b/test/integration/test-batch.js
@@ -331,6 +331,9 @@
 
 test('new batch operations fail after unsuccessful batch commit', function(t) {
   setupTable(t, function(err, o) {
+    if (err) {
+      return t.end(err);
+    }
 
     var ctx = o.ctx;
     var db = o.database;