[Camera2Video] Catch NullPointerException

In some devices such as the Nexus 7 which does not have a back camera
and therefore does’t support the Camera2 API, the sample would throw a
NullPointerException.