Fix pet spell cooldown being extended without successful cast

Closes #12560
Merge pull request #12818 from MrSmite/pet_spell_cooldown

Fix pet spell cooldown