audio policy: fix getOutputFromId and getInputFromId

It should return NULL instead of the last descriptor handle
if mismatching specific output/input id.

Bug: 115474937
Test: manual test.
Change-Id: I37ff9622392f3fa3fbfd0c2a3362c704340bd72c
2 files changed