Fix break when publishing an empty repo