TextField#getSelection fix

I'm totally forgot that selectionStart can be < cursor ( causes a StringIndexOutOfBoundsException ).