Fixed seeInDatabase() when testing for NULL values in PostgreSQL.

Fixes issue #981.