progressbar: prevent total from being initialized with nil