libbpf: Add NULL check to add_dummy_ksym_var