Fix support for PostgreSQL in new versions of Roundcube.

Reported by NetExpert on GitHub.