If restartInput is called twice in quick succession, then the IME may output warnings related to usage of the obsolete connection resulting from the first call. Fixes https://github.com/flutter/flutter/issues/10730