fix bug when attachments is not available
Merge pull request #2 from whiteout-io/dev/fix-parsing

fix bug when attachments is not available