DeleteBranchDialog: fix merge checking.