Fix memory leak in msgpack_unpacker_next

This `if` block is present in master branch but missing in `poc/6.0`. Adding it back fixed a memory leak reported by valgrind.