Fix bug where layers aren't shown in SurfaceFlinger dump. am: a2b9fab57a

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

Change-Id: I6ebf3026617f18d73478eb4996fe101492bc9b4d