Energy2D: Fix rendering of invisible parts

[#52558183]

Use visibility: hidden to hide parts. When display: none is used,
positioning of labels fails and e.g. Firefox rendering fails
completely.