fix assertion (see BATCH-1957: WRITTEN_STATISTICS_NAME in execution
context now contains TOTAL number of records written)