Ensure section link index is in range

Ticket:             467
Reported by:        Alexander Cherepanov