Benchmarks: Fix for failing test

Fixes an attempted read/write of a null value in readFrom()/writeTo().