fix #10727, so raw file bean can create empty files

To test, in Insight try attaching a file of zero size to an image and see if it works and downloads okay. See notes on https://trac.openmicroscopy.org.uk/ome/ticket/10712 and https://trac.openmicroscopy.org.uk/ome/ticket/10727