Internal helper function used to extract the first non-empty value
from a list of fields, in order, from a list of records.
If all fields are NULL or empty strings, returns "".
.safe_extract_first(x, fields)A character vector containing the extracted values, with NULLs replaced by "".
Internal function (not designed to be used directly by end users)
A list of lists (records), coming from parsed JSON API responses.
A character vector naming the candidate fields to check in order.