use event core_block_abstract_to_html_before instead rewrite of Mage_Page_Block_Html