VOYEUR: Add a check to avoid potential use of negative value as an array index