Core/Spells: Fixed crashes happening with spells that had their dbc targets overriden

Closes #10395