Just tested this and I can't seem to replicate it. Do you have anything that lowers the health of your pet elsewhere?
I did notice that the item was used even if the pet's health was at 100 though, so that can be prevented by changing:
PHP Code:
if($addHealth > 100){
to:
PHP Code:
elseif($addHealth > 100){