Fix quality flaws and fix issue when release was available for a previous sonar version