[TIMOB-14016] TextWidget setSelection selecting wrong position - back port

This is the back port for [TIMOB-16014](https://jira.appcelerator.org/browse/TIMOB-16014) to 3.2.x