Fixed bug with related to undef in valid args list

It used to just crash the tab-completion to have a undef listed
for a valid argument to an option.