Fix segfault when no args passed

Previously passing no args caused a segfault as the first token was
accessed with no check for initialisation.