Fix crash when --use_gui=false

We should have checked the existence of commentator when stopping it.