Fix some quality flaws
Fix regression concerning SONAR-5878 (task property was released too early)