fix the query that links breeding programs to locations, which crashed if there were no locations assigned to a program.
fix the query that links breeding programs to locations, which crashed if there were no locations assigned to a program.

solgenomics/sgn,solgenomics/sgn,solgenomics/sgn,solgenomics/sgn,solgenomics/sgn,solgenomics/sgn,solgenomics/sgn