Fix panic when subcommand is empty.