Do you think it worthwhile for me to plead "not guilty" upon the basis that my dig nipped the young woman purely because she kicked it. Apparently a crime in itself?
Your example is surely not appropriate. I can produce evidence that my dog has never been aggressive and that the woman has kicked out at my dog on previous occasions. Surely a better analogy would be one of self defence. If you were kicked by another woman, would you not be entitled to defend yourself by the only way you know how, even if such defence, without provocation would amount to an assault?
So, let us take a more extreme example. Assume the woman had grabbed hold of the dog, and hit and kicked it repeatedly. Would not this provocation "entitle" the dog to react?