(#543) - Encode empty attachment buffers
(#543) - Simplify and cleanup
Merge pull request #543 from nick-thompson/543-leveldb-getattachment-encode

LevelDB adapter _getAttachment ignores opts.encode when returning an empty attachment buffer