fix crash of textinput test case
Merge pull request #4300 from minggo/textinput-crash

[ci skip]fix crash of textinput test case