Handle negative replication delay as being 0 seconds behind
Merge pull request #977 from Tenzer/negative-replication-delay

Postgres: Handle negative replication delay
Merge with master