Fix canceling of IBus preedit

When the user types with an IBus keyboard that opens a pop-up window
and then cancels out of the preedit by pressing the ESC key, we
now properly delete the preedit text from our view and properly
restore the IP and WS.

Change-Id: I74a969bf4d3368e667bf59db343d68a35212bf24