message: Fix correctly trigger old result-set materialization prior in duckdb_value_is_null
diff: @@ -154,10 +154,13 @@ RESULT_TYPE TryCastCInternal(duckdb_result *result, idx_t col, idx_t row) {
  }
  static bool CanFetchValue(duckdb_result *result, idx_t col, idx_t row) {
  + if (!result) {
  + return false;
  + }
  if (!duckdb::deprecated_materialize_result(result)) {
  return false;
  }
  - if (!result || col >= result->__deprecated_column_count || row >= result->__deprecated_row_count) {
  + if (col >= result->__deprecated_column_count || row >= result->__deprecated_row_count) {
  return false;
  }
  if (result->__deprecated_columns[col].__deprecated_nullmask[row]) {
  @@ -339,7 +342,7 @@ duckdb_blob duckdb_value_blob(duckdb_result *result, idx_t col, idx_t row) {
  }
  bool duckdb_value_is_null(duckdb_result *result, idx_t col, idx_t row) {
  - if (!result || col >= result->__deprecated_column_count || row >= result->__deprecated_row_count) {
  + if (!CanFetchValue(result, col, row)) {
  return false;
  }
  return result->__deprecated_columns[col].__deprecated_nullmask[row];
  