People who own dogs may be more likely to have better heart health than those who don't, according to a new study.