Avoid index generation errors when align_ref is not found