Added a null check in StatisticsPerInstitute