preventing crash when init branch is no more needed

...and should correct end loop when fail to find root changeset
refactoring / cleaning
refacto InitBranchSupportingRename