Fix resetting scoped config defaults

It would write an empty object for the parent key when there were no
other objects in the parent key.

Closes #4175
Merge pull request #4194 from atom/bo-fix-scoped-config-default

Fix resetting scoped config defaults