Fixed dividedByZeroException for the case of peers stopping
sharing the file in the middle of download.