WICKET-5185 JavaScript text is spread in several DOM text nodes