fix invalid korean input

same issue from ibus-qt, patch from ibus-qt

https://code.google.com/p/ibus/issues/detail?id=654
https://github.com/phuang/ibus-qt/commit/f10a2153b604ba66653fe526596aae66583133c0