handle case where near_candidates is empty