Avoid decoding `nil` config structs

Cherry-picked from #102; missed in #119.