Benchmarks: Fix for failing test

Fixes an attempted read/write of a null value in readFrom()/writeTo().
Merge pull request #6991 from aleph-zero/feature/benchmark

Benchmarks: Fix for failing test