Fixed oplog manager reconnect code for then the primary switches node.

If running against a replica set and if the the primary node falls out of the cluster and another secondary node is selected as master, the mongo-connector script fails.