platform: msm_shared: NULL pointer check for indices from smem

Add a null pointer check when indices are read from smem in smd
read and write

Change-Id: I990b713e21c0762ada228be7e2e5a1fcb07fb1bb
1 file changed