Scripts: fix crash in spell_jokkum_scriptcast

Closes #11313
Merge branch 'master' of github.com:TrinityCore/TrinityCore