avoid undefined variable errors

If less than 2 arguments are passed to the script, these lines will abort with unbound variable errors due to set -u earlier in the script.