mail/thunderbird: prevent mail corruption after r473670
PR: 229452 Obtained from: upstream (Thunderbird 52.9.1)