check for null object

This fix makes it possible to pass NULL values to the auto-generated insert statement procedures. The field also has to be declared as `null` in the JS declaration of the procedure (instantiations of VoltQuery).