Make ProcessPageAdd::getAllowedTemplates hookable