Handle empty response when retrieving measures

Fixes a null exception when sonar.find doesn't return anything.