Energy2D: Fix typo in core model
Fix Energy2D on Firefox

[#52954437]

This seems to be related to this bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=612118

Calling .getBBox() before element is attached to DOM causes failure.
It requires from us a different approach to view initialization, what
was partially done in this commit.