Fix #26 - Resolve crash on empty file or error in compressor