fix the pagepart twig extension

Use Haspagepartinterface instead of abstractpage so entities with pageparts can use the extensions.