hal: Validate active input before accessing source

- Ensure that the audio device's active input is valid before
  attempting to access the input source.

CRs-Fixed: 959009
Change-Id: If66cc1e3d5467bf7d03137fdbbffd724a57ecaf6
1 file changed