Add compact function to prevent undefined/falsy keys in the peer list. They are a side-effect of an existing issue where peers try to connect with an undefined key, so this code will be removed once that issue is fixed.