[PATCH openEuler-22.09 v2 188/391] libbpf: Add NULL check to add_dummy_ksym_var