Never, this is purely on the dog owner. All shame goes to the dog owner, not the dog.
If I were to take the dog owners excuses seriously and donated free food to the dog owner every once in a while to make sure the dog didn't starve to death (while ignoring the fact that the dog owner wasn't feeding the child). That would not be a good scenario.
The dog obviously needs some help and there are animal shelters that can help with that.