Fix for Magento CE 1.5 without resource helpers.