Don't crash when decoding a struct with unexported fields.

In this case, the decoder will skip the value.