I'm not 100% sure about tomatoes...
However, if it's in the baby food, I doubt that it would be overly acidic. So I don't really see the harm in trying the baby food. Is it listed as the main ingredient? or is the tomato further down the list? If it's further down, it should be fine, especially since it's processed baby food.
(Though perhaps it might be good to wait for more responses, as I am not 100% sure on it all.)