Call to a member function getOptions() – Magento Bug