Removing previously added style tags before adding new one.

Hopefully fixes #211 and #294 where multiple style tags were being appended to <head>. The newly created tag contained the rules of previous tags so now they're removed before adding the newly generated <style>.