Changed how UA block is inserted into layout for older Magento versions