PostgreSQL: Ensure that blank queries return null