glwt_events: Fixed uninitialized window on error.