Add extra checks around the profile file descriptor.

Be prepared for RuntimeExceptions by catching Exception instead of
RemoteException. Also, make an explicit check that the profile fd is not
null and valid.

Test: gts ArtManagerHostTest
Bug: 76028139
Change-Id: Ic8927a69ad8904ddf7f62f0699ebea5aeb30bdac
(cherry picked from commit 06f74f86586313e769cf00d3dbe832c56b02023f)
1 file changed