Small but very important bug fix

If the first argument of the array of arguments was a NULL value, the
query wouldn't be executed at all, because the check on that array was
wrong and would otherwise never execute