Avoid better sending events to null objects

Qml TextInput element was able to cause crash by having selection on
focus out. That (incorrectly) causes update() to trigger. Better
to be more careful on input context side.