RichText editor event tear down fix.

Event handles generated in the onLoad function of RichText were not being 'owned' properly.
I updated the mapper to return a list of handles instead of undefineds.

Added test to show RichText is no longer throwing an error when being destroyed.

Fixes #18086.