fixing regression (NullPointerException) about feature #3942
fixing bug #4185
on each publications to validate, checking profile according to folder where publication is
fixing bug #2704