Cleanup ARX_SPELLS_GetManaCost()

Fixes two possible out of bounds array accesses reported by GCC 4.8.