setValue() clears text input incorrectly when caret gets to the beginning of the input on focus

Details are in issue https://github.com/Behat/MinkSelenium2Driver/issues/63