fix null check in get_client_challenge_costs