fix a segfault in the two-phase I/O algorithm for fileviews of 0 byte size.