updated es/upstream to prevent spurious deletion of dangling indices.