Fix Nullpointer on download attachment