Fix for "Mails being sent as HTML instead of text".

Patch by MediaWiki.org user Krusher.

Change-Id: I31596a2a58384ec652aad088fa69c5211d3e1364