Stop using g_assert() in the gtk tests.
Make sure we're correctly resetting the internal key capture widget pointer when the widget goes away.