SF: fix a crash in SurfaceFlinger::setActiveModeInternal

Add a null check for the upcoming mode before trying to access it.

Bug: 193760364
Test: fold & unfold device
Change-Id: Ia381db8dd048dcca8fc2535bbb6d668fd32010a9
1 file changed