pgrest_getauth: fix typo.
fix pgparam is not stock if cookiename in not specified.