Make argc/undefined checks more resilient.