fixed checking of wheter branch is merged before delete