Modified InsertBatch to correctly handle multiple batches when w=0 and continueOnError=false. That required postponing until the very last minute the decision whether to send the getLastErrorMessage, which was done by introducing an optional ShouldBeSent delegate.