Fixes DTK ticket 15134: calling get value before the iframe is loaded

Added an isLoaded check to RichText#getValue to avoid errors when the iframe has not yet loaded.

https://bugs.dojotoolkit.org/ticket/15134