Fixed command line error when command is null

The error was bothering me so I fixed it.