Fix for bug 960420

Variable 'totalSyncChunks', used to compute progress, can be zero.
Added defensive code to avoid divide by zero error.