bfd: fix NULL dereference in bfd_api_verify_common