Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)

Should (hopefully) fix #4696.

@joepie91 Does this patch fix the issue?