Fix detection of creation of a new root branch