WPRichTextView: Invalidating content size on the main thread

Fixes #1951