Fix #752.  When total == 0, the scale should also be 0, to avoid log(0).
Merge pull request #752 from mdboom/utils/progress-bar-exception

ProgressBar(0) raises exception