Added a check for no files being available to sync.