Merge pull request #3975 from spigad/master

resolve conflicts mmascher report
adding flag for publication from config
Merge pull request #3976 from vmancine/master

new flag publication
remove obsolete import
add protection against emtpy result objects