Fix native codecs

Fix inflate.js error handling, according to nahidakbar in issue #101
inflate|deflate.js: report error by throwing Error.
Actually I don't known, I copied these codes from @nahidakbar 's comment in issue #101.
Without `else`, this code fails at line 2110 with test case in #44 .