Fixed crash when download of message failed (fixed #612)