Add null check on ActivityOptions before using it

ActivityOptions in calculate() may be null sometimes, which
results in an NPE when trying to get the launchWindowingMode.

Bug: 202194933
Test: m -j128 && atest CompatChangeTests
Change-Id: Icc87278adb66b6ab856c8bb84594933abc71cf60
1 file changed