Fix issue where an error would be returned even though the underlying compression/decompression action succeeded