DAR-1230: fix not passing width and height to dynamically loaded stylesheets. Also fix not removing existing duplicate stylesheets.