(bug 49498) avoid fatal errors on invalid input.

When constructing DataValues from a native representation,
an invalid representation should cause a IllegalValueException,
not a fatal error.

Change-Id: I4d6b27adfd8f8f6320c5029fde0a6a2a835c31d6
Merge "(bug 49498) avoid fatal errors on invalid input."