Send as text when no html part is found

This commit fixes a problem with sending text only emails.
It was sending text only templates as html and thus compromising their formatting.