Null guarded pattern when getting capture device.