Don't throw error writing zero-length objects
Merge pull request #12 from garborg/master

Don't throw error writing zero-length objects. Fixes #11.