Fixed a crash in the item editor

- Trying to create a spell type item will no longer have the possibility
to crash the client due to an incorrect value.