Core/Spells: fix crash when loading custom spell attr with invalid spellid