Fixed a bug that adding custom CSS rules with the style_{...} filters caused to create a script with the content of the added CSS rules. This also fixes a bug that JavaScript scripts with the addScript() method did not work.