Fixed crashes of AntShell when issuing commands like "", etc.