Merge "libgui: layer_state_t::read() check null" into rvc-dev-plus-aosp am: 4c924bab94 am: e6f76cfafc am: 567239b336

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12184116

Change-Id: I2a35ec39c28b72c47d8baf4688ebab92e1835391