Fix Runner::Pg to reconnect bad PG connections.

The fix was originally introduced in c842b4f8ef8d963b4c1ee7356ada4b9aa7164f0a,
but didn't work.