Update index.php

Update to fix error that occurred if the navigation menu was empty.