Fix the report progress when file_size is unknown (#1731)