Made NewConfig(nil) work as expected

This is a small fix to UnmarshalJSON to avoid trying unmarshalling
of a nil root. MarshalJSON already plays nice with this.