fix error handling in LzmaCompress()