Fix non-existent class exception on plugin activation

| Q             | A
| ------------- | -------------------------------
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #3115
| License       | MIT

Fix the non-existent class exception on plugin activation.
Please print more context.. You are already aware of that a class is missing and you already known which class..