Fix failure when fetching empty repositories