what to do when a dog tears a nail