fix bug that it cannot work When using thirdpart input method

when use each of the third part input methods, there will be three times notification . And the first time the keyboard rect we get from the notification is an empty rect, so we need to ignore it.