Fixed lua error when disabling tokens or the minimap.