ocperf: fix offcore null check