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

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

Change-Id: I0441324f9d031df08f9e07f28550475cfd90880a