fix npe in pg replication check.
fix npe in pg replication check.

joyent/manatee,AmlingPalantir/manatee,AmlingPalantir/manatee,joyent/manatee,GrimDerp/manatee,josephglanville/manatee,josephglanville/manatee,GrimDerp/manatee