Fixed bug where an empty style tag was created