Merge pull request #856 from kuba--/fix-840/corrupted-objects

plumbing: packfile, Don't copy empty objects. Fixes #840