avcodec/hevc_refs: fix potential use of uninitialized min_idx