I came across this issue when trying to check if the RichTextEditor property had any content before rendering it to the display.
Examine the following code:
var thisNode = Model;
This causes a script error because Umbraco thinks MyRichContent is a object type.
To get around this, either call .ToString() on the property or do a length condition i.e thisNode.MyRichContent.ToString().Length > 0 to resolve the issue.