Camera: Add checker for null pointer exception during camera release

In current code, handler will still try to execute command even
camera is closed, so add null point checker to skip these commands

Change-Id: Idc407b31bedbf5e879673cb2ca4011dbb006587a
Merge "Camera: Add checker for null pointer exception during camera release" into jb4.3