tinycompress: Fix error handling in plugins. am: fc8976c893 am: 961c9afd6b

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I19206f006ba5de110af0edf66b501b8bb15867e8