[PATCH openEuler-22.09 191/379] libbpf: Add NULL check to add_dummy_ksym_var