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