plugins/check_postgresql_replication: properly check psql output to avoid using
undefined variables.