[Camera2Basic] Catch NPE in unsupported devices

As with Camera2Video, a NullPointerException is thrown when the device
does not support the Camera2 API. I added code to catch the exception
and show a message saying the device isn’t supported.