Fix failure on fetching empty repositories