Fix the case when some files only have a local replica (they were considered failed)

This is relatively urgent as user jobs may not be able to run...