app: Don't change the title on tab labels that no longer exist

This fixes a potential crash when a tab is moved to another window,
and later the title of that terminal changes.

https://bugzilla.gnome.org/show_bug.cgi?id=730389
(cherry picked from commit 6c1ece7dab2a11b7e0c6561f89cf83510abb51bf)