Have tryTest{} work with throwables am: c4e700607d

Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1901338

Change-Id: Ib556a0f1f0618217bec4551bd1dbea3f9c1d87f6