Catch exceptions that occur when decoding objects.

If an error occurs while decoding an object we don’t want the app to
crash. It is better for the app to not crash and be missing data. The
object is most likely about to be populated with JSON anyway.