msm: camera: sensor: Avoid race condition for register settings

Register settings were dereferenced after being destroyed.
Added null pointer checks before its  dereferencing.

Change-Id: I560eeda4c754eaf6de953f1c9fd17a056b33e6ff
Signed-off-by: vhajeri <vhajeri@codeaurora.org>
3 files changed