This commit lets attachments be sent by themselves and prevents a crash when a text message is sent with an attachment