Update AutoCompleteService.groovy

selectSecondary needs an if statement - throws null point exception.