Fix replication slot check.

The script was giving a false positive for the replication slots check.

Noted by Laborie Vincent.