Properly check if dest is undefined.

Otherwise if f.dest is actually undefined args will look something like ['cc', 'all', undefined].