Fixes #3918 - Activate / Deactivate All plugins doesn't play well with d...

...eps system

Fixes #3918