Check dir path before updating permissions. am: 58a6452ed4

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/providers/TelephonyProvider/+/19734281

Change-Id: I612b276c06ec71e8cc2593b32e7b8ed2372ee7a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>