Check dir path before updating permissions. am: ff2cc0cede am: 0976bad2f9 am: 2053f59c1f

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

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