Handle progress reporting even when tellg() doesn't work

Change-Id: Ib57e9694a3656a161cf33f3b730981668fb462da