Fix copy and paste error
Don't write nil compact peer lists