Fixes #3918 - Activate / Deactivate All plugins doesn't play well with deps system
more accurate error messages when plugins cannot be enabled
Merge branch 'pr-5624'