Fix a bug where unknown keys in a connections state would be clobbered when updated via widget UI.