libmedia: Fix null pointer crash in secure buffer allocation.

Add null pointer check for native_handle as it is null if
secure memory allocation fails.

Author: Vasantha Balla<vballa@codeaurora.org>

Test: fix the bug
Bug: 71053053
Change-Id: I204ca69b9808448788c83a1ae5a642618eca8973
(cherry picked from commit 617b0827bc7daf66272455034c1dddd10b846663)
2 files changed