3.x Fix for config loader in FormHelper And WidgetRegistry

Related to #5163