libbinder_ndk: fix failure when dump/shell are unset am: 8d49c3fbae

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12371860

Change-Id: I3c6546c3358724a46793203737759f765cd03807