Fixed crash when using JSCoreTextView in xib files.

Fixed crash when using JSCoreTextView in xib files.