More fixes to handling driver_pgsql_query_s() when not connected.
More fixes to handling driver_pgsql_query_s() when not connected.

Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot