Check if preedit string is empty before sending cursor_pos