Placing a continue statement in the inflate/deflate loop while encountering buffer error as per zlib documentation

For large files **buffer error** is thrown due to either avail_in or avail_out becoming zero while inflate/deflate. 
***Continuing*** the loop when buffer error is encountered as per the zlib documentation resolves this issue.