[JENKINS-19649] fix issue where view mask and clean can get stuck in an enabled state
[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
p4.prog reporting feature