Fixed Crash with Preferred Block Size Set to Zero

Fixed crashing when reading data with the setting preferred_block_size_bytes=0.