prevent overwriting peers.dat if we have 0 addresses

- fixes #4669