fix handling of invalid arguments passed by some bootloaders (thanks to Jeff Hansen...