OH3 doesn't seem to read Persistence Data from Influxdb2

var price=Energy_AgilePrice.historicState(ZonedDateTime.now(),"influxdb")
logWarn("Rules","Type:"+price.state.getClass().getName())

returns

2021-04-03 14:05:39.993 [INFO ] [b.internal.InfluxDBStateConvertUtils] - Could not find item 'null' in registry
2021-04-03 14:05:39.994 [WARN ] [org.openhab.core.model.script.Rules ] - Type:org.openhab.core.library.types.StringType

Looking through the influxdb code it appears that it defaults to a StringType if it can’t find the itemName - which for some reason is ending up as null? (I’ll repeat my disclaimer that I don’t know Java)

I’m assuming the reason it does this is line 108 of InfluxDBStateConvertUtils.java where it goes for a StringType if it can’t find the itemName?