mov: Rework the check for invalid indexes in stsc