Fix NPE in PlatformCompat

Change-Id: I01c8aa5a21bc2e385c27e42d66452c9e6303b729
Flag: EXEMPT bugfix
Fix: 379058950
Test: presubmit
1 file changed