Catch encodeValue exceptions and assign them as widget error.