Fix crash caused by missing command line arguments