check_wav: return error on premature end of file.