Add missing error return for plugin creation. Upstream-commit: 6b3f66c4188b573534a6887668b9fb213cc489e9 Component: engine