Fatal error: Call to a member function getId() on a non-object in /home/baf90due/public_html/app/code/local/Magazento/Gallery/Model/Layout.php on line 72