Previously we always used textoverlay for rendering the output of a parser, now the same code as for the renderers is used and the element with the highest rank is used. Fixes bug #663822.