Fix a segfault in cgame console.