fixed createclient error when args are undefined

When createclient called without arguments and needed environment variables, "unknown type of connection in createclient()" error occurs in some machines. This fixes it.