Fixed issue #8076: Unable to respond to survey when using PostgreSQL and database sessions