widget: Fix a rare display update problem after a terminal reset

https://bugzilla.gnome.org/show_bug.cgi?id=730599