Fixed bug on iOS5.0 where caret was positioned wrong after removing a token

Only happens on iOS5.0, on iOS6.x and iOS7.x it did not happen. No regression afaik