[FIXED JENKINS-19649] viewmask config fix

fixed condition for using the view mask for changelog
fixed issue where view mask for changelog option could be enabled when loading config
added test for optional configuration sections