Fix issues with getBBox in Fifrefox

[#44843309]

Just do not repaint molecule container too early, when DOM elements
are not yet attached.
Monitor performance of semantic layout

Display number of required iterations to get optimal layout and time
in ms.