tinycompress: Fix error handling in plugins. am: fc8976c893

Original change: https://android-review.googlesource.com/c/platform/external/tinycompress/+/1551055

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ac79de119bcd9d9832d852730b3de960c815e49