Merge "tryRegistrationImpl: better error checking" am: 1602b7d606 am: 98adfb9a1f am: 0330c1a5f6 am: 61f6ce6d6b

Original change: https://android-review.googlesource.com/c/platform/system/libhidl/+/1367567

Change-Id: I61879043b09178c5aa1da6628fe2b7f6b17acd5b