audio: check the return of a.core before using it.

it should change the lib/pulse prototype for forcing error checks.

Change-Id: I2ffcf224fdc1c3f795e29818e4675df720d9d572