[PATCH AUTOSEL 6.6 81/83] libbpf: Add NULL checks to bpf_object__{prev_map,next_map}