archive: handle commits with an empty tree