SONAR-2501 Only do a analyse if resource exists in Sonar