Check before casting to TaskMenuView on rotation

- Added a instanceof check to avoid ClassCastException

Fix: 400957867
Flag: EXEMPT BUG_FIX
Test: manual testing rotation on phone and tablet
Change-Id: I2b094fdca4f380128b50d5086548cbac3ef09bf4
1 file changed