A fix for issue #16

Prevent empty text part when only html part is assigned