fix potential read null pointer

Codec2Client::Component::HidlListener::onworkdone() could potentially
receive invalid workBundle because decoder has already been destructed.
this causes objcpy() of types.cpp read null pointer.

Bug: 242686314
Test: mediarecorder CTS test
Change-Id: I915aeea4e6a1ab06ca2c86c78f3f27f1046d38a1
(cherry picked from commit 1d26007ca5480dca199db2d9a202d75cad0d56c4)
Merged-In: I915aeea4e6a1ab06ca2c86c78f3f27f1046d38a1
1 file changed