Fix update-stable for 0-commit branches.