Camera: add proper nullptr check

Test: CTS
Bug: 64118349
Change-Id: I2fd5c3f32d4e13560a88f4657c4f25faedd869ba
1 file changed