Remove not needed code. Plone Site getDefaultPage returned None, because the page was renamed before.