As a quick fix, you can replace it with this:
```lua
spell = spell and color_it(spell, color_arr['spellcol']) or ''
```

Ideally, this should be integrated into color_it though.