#964863 git-buildpackage: check if branch is in packed state and use it instead of failing or throwing a warning