fix backspace on IE when caret is at the end of a line with only whitespaces