fix: image uploads are sometimes incompletely

Fixes the issue described in https://github.com/CollectionFS/Meteor-CollectionFS/issues/210