Merge change 24628 into eclair

* changes:
  Fix an exception in Contacts when you select text backwards from the end.