ND2: fix size calculation for lossless compressed data

Fixes https://trac.openmicroscopy.org.uk/ome/ticket/11386

To test, verify that the file from QA 7572 opens correctly, and that builds are green.