Fix condition to only add the forms layout to twig when its enabled by the configuration