Don't get the progress handle if we don't have the progress dialog when scanning music
Merge pull request #5495 from topfs2/progress_dialog_fix_headless

Don't get the progress handle if we don't have the progress dialog when ...