Foam won't get inside the pack and put a fire out. So if foam did the job, it is highly unlikely that the battery was involved in the fire.
Well if the battery was the actual part that started on fire. I'd say it burned out of the pack. So then it be open(burned out) and then foam would have suppressed the battery fire. Unless you know that the pack container is made out of and may be surrounded by a strong thick metal that is fire resistant. Then you may have a point that the battery was not compromised. But I doubt that tesla would have spent such money or added that weight to the battery pack.