 
 
     # Generate reply text by adding `>` before each line of the given text.
-    generateReplyText: (text) ->
+    generateReplyText: (message) ->
+        unless (text = message?.get('text'))
+            return ''
         text = text.split '\n'
         res  = []
         text.forEach (line) ->


    # Add a reply prefix to the current subject. Do not add it again if it's
    # already there.
    getReplySubject: (inReplyTo) ->
        subject =  inReplyTo.get('subject') or ''
        replyPrefix = t 'compose reply prefix'
        if subject.indexOf(replyPrefix) isnt 0
            subject = "#{replyPrefix}#{subject}"
        subject

    # To keep HTML markup light, create the contact tooltip dynamicaly

        message.cc = []
        message.bcc = []
        message.subject = @getReplySubject inReplyTo
        message.text = separator + @generateReplyText(inReplyTo) + "\n"
        message.html = """
        #{COMPOSE_STYLE}
        <p><br></p>
