hal : Add proper check to fix NULL check error.

 -Add proper check to avoid dereferencing of
  pointer after null check.

Conflicts:
	hal/audio_extn/utils.c

Change-Id: I61e774b46dcca64e40fc0f5453abb673d8d0c09f
1 file changed