Fixed infinite loop in workaroundUITextInputTraitsPropertiesBug