[TextEditor] Ensure that uncached layout wrappers are disposed.