Handle failure to convert cmd-line parameters to numbers. Fixes #908