fix(core): fault in ElggPlugin contructor

The attibutes of an ElggPlugin are set too late to save all attributes
correctly.

fixes: #6426 and #6430
Merge pull request #6455 from jeabakker/wrong-initialization-of-ElggPlugin

fix(core): fault in ElggPlugin contructor