cameraHAL: Fix some potential NULL pointer dereferences