Avoid exceptions when decoding.

The exceptions where thrown when decoding an object with different
fields than the local schema indicates.