st-hal: Fix pcm NULL dereference

Due to prior LPI/Non-LPI transitions failure, the pcm is invalid.
This results in a crash when accessing the pcm during device
switch.

Change-Id: I6b203db8ce40b777420192885f18966543c758eb
1 file changed