Handle {frame,icon}-title-format being t in more cases

Need to check when deactivating jabber-activity-mode as well.