Fixing crash with retrieving the first stack task.

- We should be retrieving the first stack task for calculating the 
  thumbnail transition, regardless of whether it is freeform or not.

Bug: 26739531
Change-Id: I27037a480201396011d7f9b8d094b4d9afe66f0e
3 files changed