fix possible null ptr use in C3DStream::readArray()