Fix retrieval of attachments by Content ID. Fixes #38