Fix break when publishing an empty repo

Same here.