Fixed possible crash in ObjectMgr::GetNextSpellRank