Bisect: add checks at the beginning of "git bisect run".