Prevent backgroundScan() from looping

The Dropbox storage library was returning an unexpected result for empty directories which resulted in opendir() returning false. The backgroundScan() kept trying to scan this folder because the folder was always returned by getIncomplete(). Now it should only try once for failing scans. 

@icewind1991