preventing crash when init branch is no more needed

...and should correct end loop when fail to find root changeset
refactoring / cleaning
refacto InitBranchSupportingRename
FindMergedRemoteAndFetch crash fixed
Merge remote-tracking branch 'pmiossec/rename_branch' into optimized