Fix argument check that caused "Undefined offset" warnings...

... when script was called without arguments.