Check dir path before updating permissions. am: 58a6452ed4 am: 9976a26dd7 am: 655eb317ff

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

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