Added track index checking for proper synths absence handling.