bug fix for Mage_Core_Block_Messages, http://www.magentocommerce.com/bug-tracking/issue?issue=14867