Fix ROOT-6265: Avoid segfaults when commandline is incomplete

Make the rootcling command line tool even more robust.