7z: fixed valid() bug: fix #962