Fixing #341 Richtext widget "undefined" output