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

Fixes #4696.