Update index.html.twig

Check that blockpage method exists before call