Created by: raviagarwal7
Patch picked from - https://android.googlesource.com/platform/tools/base/+/5c6d992f405b0d83f3c10e4d5f6d961bef50221c%5E%21/build-system/manifest-merger/src/main/java/com/android/manifmerger
Google Issue tracker - https://issuetracker.google.com/issues/114358542. Fix in bazel - https://github.com/bazelbuild/bazel/commit/59327306bf7bb6ecc28d8b52c8bbf343361293bf