Check dir path before updating permissions. am: ff2cc0cede am: 0976bad2f9 am: 2053f59c1f am: a4b0c0a24f am: b3d2680a65 am: 76534cf15d

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

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