Check dir path before updating permissions. am: ff2cc0cede am: 0976bad2f9 am: 2053f59c1f am: 6f2a319804 am: 2dcd1fc320 am: 20306f30d2

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

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