Fix Nullpointer on download attachment
Merge pull request #164 from cortiz/master

Fix Nullpointer on download attachment