Update repo archive script to handle empty repos