(bug 49264) Handle UnDeserializableValue gracefully.

IMPORTANT: this needs I9920286 in DataValues.
IMPORTANT: breaks Wikibase until Ic9a6a9f16 is merged.

Change-Id: Id27f19020e2fd75a250fea4deb1eb94aeeff6f3f