Fix NPE when checking pending transition type

- This is a regression from ag/25618079, that change only affects the
  hide transition for an existing taskview so adding this check does
  not affect that behavior.

Bug: 317330143
Test: atest WMShellUnitTests
Change-Id: If1146c6023329b40b22fe78e0f7521534f9f62f3
1 file changed