(bug 37302) wrong progress status of uploads.

On debugging found that the fraction progress went sometimes > 1
This should partially fix the issue with wrong progress status.

Change-Id: Ib718e8d8b5232f67cd3106ac47e7576b88352f66
Merge "(bug 37302) wrong progress status of uploads."