Fixed error failing when the file was empty or not a duplicates file