Added a check for nonexistent varargs to fix a NPE crash.