fix(core): fault in ElggPlugin contructor

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

fixes: #6426 and #6430