Fixed a possible error when the current branch could always be rebaed on master