[ActivityManager]Fix NullPointerException when dumping ContentProviderRecord.

Root Cause: External handles may be empty but there is "no handle" count.

Solution: Check null and print with handle, no handle count.