Fix loadingBar hiding when disableAutoFetch is enabled (issue 3590)

This is an attempt to fix #3590.

**Edit:** Test with http://107.21.233.14:8877/52cea2c73cecaf5/web/viewer.html#disableAutoFetch=true.