If shard goes unassigned or its routing table disappears completely we fail 6 lines below, right after the comment (// Shard that we were waiting for went into unassigned state or disappeared - giving up)