Fixed infinite loop in workaroundUITextInputTraitsPropertiesBug

In some cases, if classes were traversed in a particular order, ``originalValueForKey`` would be set to ``UITextInputTraits_valueForKey``. This leads to an infinite loop in ``UITextInputTraits_valueForKey``.