Blobs in v2 repos may be purged, ensure we don't try to parse
non-existent blobs for List-IDs to remove from Xapian when they
go missing. The invalid List-IDs will be removed in a later
stage of the reindex process.
if (scalar(@$xr3) == 0) { # all gone
remove_doc($self, $docid);
} else { # enqueue for reindex of remaining messages
- if ($ibx && $self->{-need_xapian}) {
+ if ($eml && $ibx && $self->{-need_xapian}) {
my $ekey = $ibx->{-gc_eidx_key} // $ibx->eidx_key;
my $idx = $self->idx_shard($docid);
my @list_ids = $eml->header_raw('List-Id');