Merge "Don't crash skiagl backend." am: 46acb2b07e am: 488f3d37bb am: 04f0a431d2

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

Change-Id: I5b2fb8979c6a7dfd2c0b3f9e3f67ddbeecdf5a04