Apparently it's hard to tell the difference if you're untrained. Seems like calling for help if you are concerned about the safety of a dog or kid is reasonable, even if it means you could be wrong.
It's also up to the police whether to take it any further.
Once they arrive, and hopefully the owner arrives, explain yourself (you were acting in good faith, etc.) and try and make sure the police don't go overboard.
When I got through to animal control, I was told that the dog was not in distress. A dog in distress would retreat to a cooler spot of the car (near the passenger side floor) and not jump around barking.
That your dog was barking and moving around, it was not in distress.