Fixes #6117 - refuse to disable plugin used as dependency

Fixes #6117