Fixed Copy Reference for iOS

Required check for returning nil from name getter. Now it returns nil only when the name is text AND it is a text kind node.

Issue #554