Prevent NULL ptr reference in ingest_record by skipping NULL values of