added check for null or unedfined to last argument in each command in the multi-execution queue