Correctly report when xmlGalleries are actually done

Previously, if the read block size was aligned with the end of the file,
the gallery would set done to false even if there were no remaining items.

Stream strongly assumes that done is set correctly.