handle empty string in rich textbox

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>