Hi,
Thanks for using our plugin. I can try to help out here.
I am not sure a if statement will work in the tooltip as it is all javascript there.
What about adding the comma to the state and so if there is none it would not show?
If not I would look to add the if statement where these variables are and send it to the tooltip that way and not try to change it there.
city = array();
$getcity = tribe_get_city();
$city['city'] = $getcity;
$state = array();
$getstate = tribe_get_state();
$state['state'] = $getstate;
Let me know if you have any follow up questions.
Thanks