Correctly handle it when branch exists, but doesn't have merged commit.