Reset model when we get an exception.

Test: Add a new unit test. Manual verfication that it fixes the crash.
Other auto tests pass.
Bug: 38500265

Change-Id: I87015e12e2e6c3512e7f8736113bfd5f94cf88b3
2 files changed