Camera: Avoid possible instability when adding new devices

In cases where camera provider is having issues
"initializeDeviceInfo" may fail to return valid device
information.
Try to avoid possible instabilities and check the return
parameter before trying to access it.

Bug: 204111448
Test: Camera CTS
Change-Id: I3561f38cb7e5aacd9f5f62bda77caddb648a2578
1 file changed