bug fix for Mage_Core_Block_Messages

original post: https://github.com/nexcess/magento-turpentine/issues/112#issuecomment-15714795

[master 7e3fe9d] bug fix for Mage_Core_Block_Messages, http://www.magentocommerce.com/bug-tracking/issue?issue=14867