Fix restoring cursor position broken after adding back textarea autocomplete.