Client: use NULL for undefined too in prepare()