SONAR-4334 Fix issue when last snapshot is null