Don't write zero block files with java serializer