avcodec/atrac9dec: Check grad_range[1] more tightly