Core/Spells: Crash fix for f9ccb6f585a4714a93.

Closes #11447. My bad.