make sure plugins_reports_* is properly cleared before inserting a new row
Merge pull request #2362 from twobraids/fix-plugins-integrity-error

fixes Bug 1066316 - make sure plugins_reports_* is properly cleared before replacing a row