antimalware monitoring configuration update

fixes issue when subsequent attempts to change the monitoring
configuration fail
Merge pull request #2648 from ejarvi/dev

antimalware monitoring configuration update