Fix segfaults for :toggle commands without arguments

Fixes #259
Closes #260