SSP-2703 Filter inactive SSG associations in non-directory search

Basically the same as the directory search patch for later versions
but for the "legacy" /students/search API.