Similar to player names, if targeting a pet or a player on a mount while companion data has not been fully received, it's possible its name doesn't yet exist. This just adds a safety so the target frame doesn't die now that the companion names appear on the buttons tooltips.
I've also moved a tooltip text creation that would get overwritten if the profile was unread, so we don't do the concatenation needlessly.
Similar to player names, if targeting a pet or a player on a mount while companion data has not been fully received, it's possible its name doesn't yet exist. This just adds a safety so the target frame doesn't die now that the companion names appear on the buttons tooltips.
I've also moved a tooltip text creation that would get overwritten if the profile was unread, so we don't do the concatenation needlessly.