MDL-68353 core: replace invalid labels with div