fixed incorrect behaviour is StringWriterProvider.isEmpty when running with batch disabled.