Null check for logicaldisplay

Ensure that the logical display is valid before calling getPrimaryDisplayDeviceLocked() on it first.

Bug: 194542389
Test: Manual
Change-Id: I788527a3cd02fcc12efe0b8d84e26d5d66f53762
1 file changed