Added removed null checks around calls to WindowSurfaceController

The checks were removed in the refactor in
e6a8351bc715999d1e42dcc1003a6eda6c318dd9

Bug: 25564523
Change-Id: Ia7c571fa48bc5c14bb76c3aa5b6fcbcc7323ed2f
1 file changed