Fixed a bug that caused the program to crash if files were added to the device's file system after the device was scanned during a sync operation.