[12429] Fix possible memory corruption related to loading pet-spells

Fix cmangos/issues#158 (part for new creation of pets)
Thanks to tarwyn for pointing