[RESTRICT AUTOMERGE] Fix possible uaf of play policy state am: e07417a9b7

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

Change-Id: I1bd1aaf3c9d67a29df28c216fb393517ddbc5ea4