Commit preedit string on reset.

Commit preedit string on reset. focus_out() still discards the preedit string without committing it.