cli: Fix NPE when no command entered.