SONAR-4930 Fix NPE when parameter "selected" is not set