Add null checks when querying CaptureResult Bug: 148111838 Test: Ran on maran2 and flame Change-Id: I19b5a0300311a73c10696e5460ded3b4a493e56b