Fix WindowlessWm null check

Fix careless mistake and also add end-to-end tests so that it doesn't happen again.

Bug: 134365580
Test: WindowlessWmTests
Change-Id: I4b22498faeb19d28f9f40daa8777f69efe6899ba
3 files changed