Fix NPE resulting from invalid instance state

Bug: 17281017

- Ensure any transient state is cleared before saving instance state by
  cancelling the current animator if applicable.

Change-Id: Ibebf5f4d89046453d36f43b98240a2cbef74288e
1 file changed