pgsql: Don't crash in sync queries if db can't be connected to.
pgsql: Don't crash in sync queries if db can't be connected to.

--HG--
branch : HEAD

jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot